package com.nzw.pojo.coupon;

import javax.persistence.Column;
import javax.persistence.Table;
import java.util.Date;



@Table(name="t_coupon")
public class Coupon {

	private Long id;			//id
	private Long userId;		//用户id
	private Long companyId;		//企业id
	private Long shopId;
	private String title;		//优惠券名称
	private String des;			//描述
	private Integer freeMoney;	//优惠金额
	private Integer minSpend;	//最低消费金额
	private Boolean use98;		//98汽油可用
	private Boolean use95;		//95汽油可用
	private Boolean use92;		//92汽油可用
	private Boolean use90;		//90汽油可用
	private Boolean use0;		//0号柴油可用
	private Boolean use_10;		//-10号可用
	private Integer type;		//1_生日券 2_节假日券 3_会员券 4_支付 5_关注赠送 6_普通
	private Integer payMoney;	//需要支付金额 type 为 4的时候使用
	private Integer state;		//1_未使用，2_已使用 ,  3_已过期
	private Date createDate;	//创建时间
	private Date startDate;		//开始时间
	private Date endDate;		//过期时间
	private Boolean remind;		//提醒
	private Boolean del;
	private String giftCode;	//赠送码




	@Column(name = "giftCode")
	public String getGiftCode() {
		return giftCode;
	}

	public void setGiftCode(String giftCode) {
		this.giftCode = giftCode;
	}

	@Column(name = "del")
	public Boolean getDel() {
		return del;
	}

	public void setDel(Boolean del) {
		this.del = del;
	}

	@Column(name = "title")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}


	@Column(name = "minSpend")
	public Integer getMinSpend() {
		return minSpend;
	}

	public void setMinSpend(Integer minSpend) {
		this.minSpend = minSpend;
	}

	@Column(name = "use98")
	public Boolean getUse98() {
		return use98;
	}

	public void setUse98(Boolean use98) {
		this.use98 = use98;
	}


	@Column(name = "use95")
	public Boolean getUse95() {
		return use95;
	}

	public void setUse95(Boolean use95) {
		this.use95 = use95;
	}

	@Column(name = "use92")
	public Boolean getUse92() {
		return use92;
	}

	public void setUse92(Boolean use92) {
		this.use92 = use92;
	}

	@Column(name = "use90")
	public Boolean getUse90() {
		return use90;
	}

	public void setUse90(Boolean use90) {
		this.use90 = use90;
	}

	@Column(name = "use0")
	public Boolean getUse0() {
		return use0;
	}

	public void setUse0(Boolean use0) {
		this.use0 = use0;
	}

	@Column(name = "use_10")
	public Boolean getUse_10() {
		return use_10;
	}

	public void setUse_10(Boolean use_10) {
		this.use_10 = use_10;
	}

	@Column(name="id")
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}


	@Column(name = "companyId")
	public Long getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Long companyId) {
		this.companyId = companyId;
	}


	@Column(name = "type")
	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Column(name="userId")
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}

	@Column(name="freeMoney")
	public Integer getFreeMoney() {
		return freeMoney;
	}
	public void setFreeMoney(Integer freeMoney) {
		this.freeMoney = freeMoney;
	}


	@Column(name="state")
	public Integer getState() {
		return state;
	}
	public void setState(Integer state) {
		this.state = state;
	}



	@Column(name="createDate")
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}


	@Column(name="endDate")
	public Date getEndDate() {
		return endDate;
	}
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	@Column(name = "startDate")
	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}


	@Column(name = "des")
	public String getDes() {
		return des;
	}

	public void setDes(String des) {
		this.des = des;
	}


	@Column(name = "shopId")
	public Long getShopId() {
		return shopId;
	}

	public void setShopId(Long shopId) {
		this.shopId = shopId;
	}

	@Column(name = "remind")
	public Boolean getRemind() {
		return remind;
	}

	public void setRemind(Boolean remind) {
		this.remind = remind;
	}

	@Column(name = "payMoney")
	public Integer getPayMoney() {
		return payMoney;
	}

	public void setPayMoney(Integer payMoney) {
		this.payMoney = payMoney;
	}

	@Override
	public String toString() {
		return "Coupon{" +
				"id=" + id +
				", userId=" + userId +
				", companyId=" + companyId +
				", title='" + title + '\'' +
				", descript='" + des + '\'' +
				", freeMoney=" + freeMoney +
				", minSpend=" + minSpend +
				", use98=" + use98 +
				", use95=" + use95 +
				", use92=" + use92 +
				", use90=" + use90 +
				", use0=" + use0 +
				", use_10=" + use_10 +
				", type=" + type +
				", state=" + state +
				", createDate=" + createDate +
				", endDate=" + endDate +
				'}';
	}
}
